//
//  CCMyLayer.h
//  newFinding
//
//  Created by Shin Stupid on 7/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "MyTransitionClass.h"
#import "tempAnimationClass.h"
#import "Define.h"
#import "MenuItemWithStroke.h"
typedef enum {
	SlideInLeft,
	SlideInRight,
	FadeUp,
	FadeDown,	
	PageTurn,
    FlipX,
    FlipY,
    ShrinkGrow,
    CrossFade,
    TurnOffTiles,
    ZoomFlipAngular,
    ZoomFlipX,
    ZoomFlipY,
    NONE_ANIMATION,
    
    
}CHANGE_SCENE_TYPE_ANIMATION;

typedef enum {
	eType1,
    eType2,
    eType3,
    eBoss,
	
    
    
}ENEMY_TYPE;



@interface CCMyLayer : CCLayer
-(CCSprite*)DrawImageSpritebyLayer:(CCLayer*)myLayer andFileName:(NSString *)strName atPosition:(CGPoint)P withZ:(int)iZ andScale:(float)fScale AnchorPoint:(CGPoint)pAnchor;
-(void)changePageWithScene:(CCScene *)changeScene type:(CHANGE_SCENE_TYPE_ANIMATION)N;
#pragma mark - OverWrite --
-(void)initBackground;
-(AnimationClass*)addImageAnimationByClass:(Class)tempClass withZ:(int)iZ;
- (BOOL)isSpriteTransparentWithSprite:(CCSprite *)block;
@end
